﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NLog;
namespace LogToDB
{
    class Program
    {
        static void Main(string[] args)
        {/*
            NLogToDB.Instance(1);
            //DateTime dt = DateTime.Now;
            //string tableName = string.Format("{0:yyyyMM}", dt); 
            //Logger logger = LogManager.GetCurrentClassLogger();
           // LogEventInfo lei = new LogEventInfo();            
           // lei.Level = LogLevel.Debug;;
           // lei.Message = "select * from ptablename ";
           // MysqlDB.CheckTableStructure<LogInst>("ptablename");
            //logger.Log(lei);
            LogInst inst = new LogInst();         
            inst.AccountID = 44;
            inst.RoleID = 33;
            inst.LType = LogType.LogType2;
            inst.EType = EventType.EventType1;
            inst.EventID = 99;
            inst.EventValue = 9;
            inst.TargetID = 8;
            inst.TargetValue =7;
            inst.Info = "info";         
            NLogToDB.instance.AddLog(inst);
            */




        }
    }
}
